package ast;


import java.util.ArrayList;

import org.antlr.runtime.Token;

import ast.terminais.Tipo;

public class Expressao extends Node{
	
	private String tipoExpressao;
	
	public String getTipoExpressao() {
		return tipoExpressao;
	}
	public void setTipoExpressao(String tipoExpressao) {
		this.tipoExpressao = tipoExpressao;
	}
	public Expressao(Token payload) {
		super(payload);
	}
	public ArrayList<Clause> getClausula() {
		ArrayList<Clause> result = new ArrayList<Clause>();
		
		for (Object node : getChildren()) {

			Clause clausula = (Clause) node;
			result.add(clausula);
			
		}
		
		return result;
	}		
	
	public Object accept(IVisitor visitor, Object o) {
		return visitor.visit(this, o);
	}

}
